﻿using System;
using System.Collections.Generic;
using System.Text;

namespace IceDog.DNL.CSharp.DesignPattern.DataAccessObjectPattern.StudentManage
{
    public class Student
    {
        public Student(string rollNo,string name)
        {
            RollNo = rollNo;
            Name = name;
        }
        /// <summary>
        /// 学号,仅为get请求的，除了声明属性的时候赋值外，还可以在构造函数赋值，其他皆不可赋值
        /// </summary>
        public string RollNo { get;}

        public string Name { get; set; }
    }
}
